//
//  DoctorTopView.m
//  QuickCure1
//
//  Created by apple on 2016/10/31.
//  Copyright © 2016年 maoge. All rights reserved.
//

#import "DoctorTopView.h"
#import <UIImageView+WebCache.h>

@interface DoctorTopView ()

@property (weak, nonatomic) IBOutlet UIImageView *imageDoctor;
@property (weak, nonatomic) IBOutlet UILabel *labelName;
@property (weak, nonatomic) IBOutlet UILabel *labelDoctorTitle;
@property (weak, nonatomic) IBOutlet UILabel *labelHospitalName;
@property (weak, nonatomic) IBOutlet UILabel *labelOperation;
@property (weak, nonatomic) IBOutlet UILabel *labelFlower;
@property (weak, nonatomic) IBOutlet UILabel *labelBanner;
@end

@implementation DoctorTopView

+ (instancetype)topView{
    
    return [[[NSBundle mainBundle]loadNibNamed:@"DoctorTopView" owner:nil options:nil]lastObject];
    
}

- (void)setModel:(ChooseDoctorModel *)model{
    _model = model;
    
    [self.imageDoctor sd_setImageWithURL:[NSURL URLWithString:model.doctor_portrait]];
    self.labelName.text = model.doctor_name;
    self.labelDoctorTitle.text = model.doctor_title_name;
    self.labelHospitalName.text = model.doctor_hospital_name;
    self.labelOperation.text = [NSString stringWithFormat:@"预约量%@",model.operation_count];
    self.labelFlower.text = [NSString stringWithFormat:@"鲜花量%zd",[model.flower integerValue]];
    self.labelBanner.text = [NSString stringWithFormat:@"锦旗量%zd",[model.banner integerValue]];
}


@end
















